
#include "app_message.h"
int main(int argc, char const *argv[])
{
    char json[]="{\"device_id\":1,\"target_angle\":3600,\"max_speed\":60}" ;
    char buffer[10];
    int data_len= app_message_jsonToChars(json,buffer,10);

    app_common_printHex("test_message :", buffer, data_len);

    char data[7]={0x01,0x00 ,0x00 ,0x61,0x45,0x00,0x01};

    char *newjson= app_message_charsToJson(data,7);



    log_info("newjson:%s",newjson);

    cJSON_free(newjson);
     
    return 0;
}
